package com.eascs.web.demo.queue;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.eascs.app.log.Logger;
import com.eascs.app.log.LoggerFactory;
import com.eascs.site.controller.BaseRestController;
import com.eascs.site.view.BaseRestResult;
import com.eascs.web.queue.QueueRequired;

@Controller
public class QueueReqeustRestResultController extends BaseRestController {
	private static final Logger LOGGER = LoggerFactory.getLogger(QueueReqeustRestResultController.class);

	@RequestMapping(value = "/demo/queue/", method = RequestMethod.GET)
	@QueueRequired(value = 2, message = "排队中，请稍后再偿试")
	public Object buildsuccessresult() {
		LOGGER.debug("QueueRequired 测试中");
		return BaseRestResult.buildSuccessResult();
	}

}